<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/basedata/basedata/base_processlinelist.jsx此处编写
 -->
<template>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
        :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions"
        :table="table" :extend="extend">
    </view-grid>
</template>
<script>
import extend from "@/extension/basedata/basedata/base_processlinelist.jsx";
import { ref, defineComponent } from "vue";
export default defineComponent({
    setup() {
        const table = ref({
            key: 'processlinelist_id',
            footer: "Foots",
            cnName: '工艺路线—工序列表',
            name: 'basedata/base_processlinelist',
            url: "/base_processlinelist/",
            sortName: "processlinelist_id"
        });
        const editFormFields = ref({ "processlinetype": "", "process_id": "", "processlinedown_id": "", "submitworkmatch": "", "sequence": "" });
        const editFormOptions = ref([[{ "dataKey": "processlinetype", "data": [], "title": "类型", "field": "processlinetype", "type": "select" }],
        [{ "dataKey": "process", "data": [], "title": "工序", "field": "process_id", "type": "select" }],
        [{ "dataKey": "processline", "data": [], "title": "工艺路线", "field": "processlinedown_id", "type": "select" }],
        [{ "title": "报工数配比", "field": "submitworkmatch", "type": "text" }],
        [{ "title": "顺序", "field": "sequence", "type": "number" }]]);
        const searchFormFields = ref({ "processlinetype": "" });
        const searchFormOptions = ref([[{ "dataKey": "processlinetype", "data": [], "title": "类型", "field": "processlinetype", "type": "select" }]]);
        const columns = ref([{ field: 'processlinelist_id', title: '主键Id', type: 'int', width: 110, hidden: true, readonly: true, require: true, align: 'left' },
        { field: 'processline_id', title: '工艺路线', type: 'int', bind: { key: 'processline', data: [] }, width: 110, align: 'left', sort: true },
        { field: 'processlinetype', title: '类型', type: 'string', bind: { key: 'processlinetype', data: [] }, width: 220, align: 'left' },
        { field: 'process_id', title: '工序', type: 'int', bind: { key: 'process', data: [] }, width: 110, align: 'left' },
        { field: 'processlinedown_id', title: '工艺路线', type: 'int', bind: { key: 'processline', data: [] }, width: 110, align: 'left' },
        { field: 'sequence', title: '顺序', type: 'string', width: 220, align: 'left' },
        { field: 'submitworkmatch', title: '报工数配比', type: 'int', width: 110, align: 'left' },
        { field: 'CreateID', title: '创建人编号', type: 'int', width: 120, hidden: true, align: 'left' },
        { field: 'Creator', title: '创建人', type: 'string', width: 120, align: 'left' },
        { field: 'CreateDate', title: '创建时间', type: 'datetime', width: 120, align: 'left', sort: true },
        { field: 'Modifier', title: '更新人', type: 'string', width: 120, align: 'left' },
        { field: 'ModifyDate', title: '更新时间', type: 'datetime', width: 120, align: 'left', sort: true },
        { field: 'ModifyID', title: '更新人编号', type: 'int', width: 120, hidden: true, align: 'left' }]);
        const detail = ref({
            cnName: "#detailCnName",
            table: "#detailTable",
            columns: [],
            sortName: "",
            key: ""
        });
        return {
            table,
            extend,
            editFormFields,
            editFormOptions,
            searchFormFields,
            searchFormOptions,
            columns,
            detail,
        };
    },
});

</script>
